package com.foreknow.practice.lala;

public class Manager {
    public void a(Person p){
        p.name="tom";
        p.study();
    }
public Person b(){
Person person = new Person();
person.name="1";

        return  person;
}
    public static void main(String[] args) {
        Manager manager = new Manager();//是因为要调用Manager对象的方法
        Person person = new Person();//是因为要调用的a(Person p)方法需要传递一个Person对象
        manager.a(person);
        Person ps=manager.b();
        String  pw=ps.name;
        System.out.println(pw);

    }


}
